package gxdlxy.zx2201.utils;
public class Person {
    String name, id;
    int age, high;

    Person() {} // 默认构造函数（空）
    // 自定义构造函烽
    Person(String name, String id, int age, int high) {
        this.name = name;
        this.id = id;
        this.age = age;
        this.high = high;
    }
    public static void main(String[] args) {

    }
}
class Student extends Person{
    // 子类的(空)默认构造函数 调用不到父类的(空)默认构造函数 ，所以报错
    int studentID;
    Student(String name, String id, int age, int high, int studentID){
        super(name, id, age, high);
        this.studentID = studentID;
    }
}
class Teacher extends Person{
    int eduAge;
}
